var index;

$(function(){
	index = parent.layer.getFrameIndex(window.name);
	

	
	$('.submitButton_Bottom span').on('click',function(){
		
		if($('#returnTimeForm').valid()){
			$(this).css('pointer-events','none').css('opacity','0.2');
			$.ajax({
				url : webroot+ "/member/updateReturnTime.ajax",
				data : $('#returnTimeForm').serializeObject(),
				type : 'POST',
				dataType : 'json',
				success : function(dataResult) {
					parent.layer.msg(dataResult.msg);
					$('.submitButton_Bottom span').removeAttr("style");
					if(dataResult.type=='2'){
						parent.serviceExpireTable().draw();
						parent.layer.close(index);
					}
				}
			});
		}
		
	});
	
});


